package com.cg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cg.dao.AppVersionDao;
import com.cg.entity.AppVersion;
import com.cg.utils.R;

@Service("appVersionServiceImpl")
public class AppVersionServiceImpl {
	

	@Autowired
	AppVersionDao appVersionDao;
	
	public List<AppVersion> queryList(Map<String,Object> query){
		
		return appVersionDao.queryList(query);
	}
	
	
	
	public R save(AppVersion version){
		appVersionDao.save(version);
		return R.ok();
	}
	
	public int queryTotal(Map<String,Object> query) {
		
		return appVersionDao.queryTotal();
	}
	
	public R update(AppVersion version){
		appVersionDao.update(version);
		return R.ok();
	}
	
	public void deleteBatch(Long[] ids) {
		appVersionDao.deleteBatch(ids);
	}

	
	public AppVersion queryObject(Long id) {
		return appVersionDao.queryObject(id);
	}
	

}
